home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
lib
/
mkmf
/
RCS
/
mkmf.top,v
< prev
Wrap
Text File
|
1992-06-10
|
7KB
|
379 lines
head 1.14;
branch ;
access ;
symbols ;
locks ; strict;
comment @@;
1.14
date 92.06.10.13.04.41; author jhh; state Exp;
branches ;
next 1.13;
1.13
date 91.04.11.12.53.29; author kupfer; state Exp;
branches ;
next 1.12;
1.12
date 90.04.13.14.30.58; author douglis; state Exp;
branches ;
next 1.11;
1.11
date 89.10.09.21.28.10; author rab; state Exp;
branches ;
next 1.10;
1.10
date 89.08.18.11.21.37; author douglis; state Exp;
branches ;
next 1.9;
1.9
date 89.08.17.11.15.59; author douglis; state Exp;
branches ;
next 1.8;
1.8
date 89.04.06.21.40.34; author jhh; state Exp;
branches ;
next 1.7;
1.7
date 88.11.27.16.28.42; author ouster; state Exp;
branches ;
next 1.6;
1.6
date 88.08.12.14.38.30; author ouster; state Exp;
branches ;
next 1.5;
1.5
date 88.07.25.10.32.18; author ouster; state Exp;
branches ;
next 1.4;
1.4
date 88.06.21.16.05.21; author ouster; state Exp;
branches ;
next 1.3;
1.3
date 88.06.06.08.36.58; author ouster; state Exp;
branches ;
next 1.2;
1.2
date 88.06.05.13.58.39; author ouster; state Exp;
branches ;
next 1.1;
1.1
date 88.06.05.12.20.36; author ouster; state Exp;
branches ;
next ;
desc
@@
1.14
log
@make sure all makefiles include TYPE
@
text
@#!/sprite/cmds/csh -f
#
# A script to generate (or regenerate) a Makefile for a top-level
# directory for commands, libraries, etc. The assumption is that this
# direcctory is nothing more than a container for lots of subdirectories
# that have the interesting stuff in them.
#
# If a file named ./Makefile.proto exists, use it as the prototype for
# the Makefile, else use a common prototype.
#
# We assume we were invoked from mkmf.
#
# Parameters passed in from mkmf as environment variables:
# MKMFDIR directory containing prototype makefiles
# MAKEFILE name of makefile to create
# MACHINES list of machine names (e.g. "sun2 sun3"), for
# which there are machine-dependent subdirectories
# (sun3.md, spur.md, etc.) of this directory.
# SUBTYPE information about the type makefile
#
# $Header: /sprite/lib/mkmf/RCS/mkmf.top,v 1.13 91/04/11 12:53:29 kupfer Exp $ (SPRITE) Berkeley
#
#
# Argument processing. (Generalized form, even though just one flag so far.)
#
while ($#argv >= 1)
if ("$1" == '-x') then
set echo
endif
shift
end
set subtype=$SUBTYPE
set name=$cwd:t
set machines=($MACHINES)
set makefile=$MAKEFILE
set distdir=($DISTDIR)
if (-e $makefile.proto) then
set proto=$makefile.proto
else
set proto="${MKMFDIR}/Makefile.top"
endif
echo "Generating $makefile for $cwd using $proto"
rm -f mkmf.subdirs~
find * -type d ! -name \*.md ! -name RCS -prune -print |tr '\012' ' ' |sed -e 's/ $//' > mkmf.subdirs~
if (-z mkmf.subdirs~) then
echo "No subdirectories found."
endif
rm -f mkmf.sed~ mkmf.sed2~
echo "s,@@(SUBDIRS)," > mkmf.sed~
echo ",g" >> mkmf.subdirs~
cat mkmf.sed~ mkmf.subdirs~ | tr -d '\012' > mkmf.sed2~
cat $proto | sed -f mkmf.sed2~\
-e "s,@@(DATE),`date`,g" \
-e "s,@@(MACHINES),$machines,g" \
-e "s,@@(MAKEFILE),$makefile,g" \
-e "s,@@(NAME),$name,g" \
-e "s,@@(TEMPLATE),$proto,g" \
-e "s,@@(DISTDIR),$distdir,g" \
-e "s,@@(TYPE),$subtype,g" \
> $makefile
rm -f mkmf.sed~ mkmf.sed2~ mkmf.subdirs~
@
1.13
log
@Flush DEFTARGET: the default target is now determined by a pmake
library file.
@
text
@d19 1
d21 1
a21 1
# $Header: /sprite/lib/mkmf/RCS/mkmf.top,v 1.12 90/04/13 14:30:58 douglis Exp Locker: kupfer $ (SPRITE) Berkeley
d34 1
d66 1
@
1.12
log
@fancier management of subdirectories, but it's been too long and i'm
not sure exactly what it's trying to do!
@
text
@a13 1
# DEFTARGET name of default target
d20 1
a20 1
# $Header: /sprite/lib/mkmf/RCS/mkmf.top,v 1.11 89/10/09 21:28:10 rab Exp Locker: douglis $ (SPRITE) Berkeley
a37 6
if ("$machines" != "") then
set defTarget = ($DEFTARGET)
else
set defTarget=()
endif
a58 1
-e "s,@@(DEFTARGET),${defTarget:q},g" \
@
1.11
log
@Modifications for distribution.
@
text
@d21 1
a21 1
# $Header: /sprite/lib/mkmf/RCS/mkmf.top,v 1.10 89/08/18 11:21:37 douglis Exp Locker: rab $ (SPRITE) Berkeley
d53 2
a54 1
set subDirs="`find * -type d ! -name \*.md ! -name RCS -prune -print`"
d56 1
a56 1
if ("$subDirs" == "") then
d59 4
d64 1
a64 1
cat $proto | sed \
a69 1
-e "s,@@(SUBDIRS),$subDirs,g" \
d73 1
@
1.10
log
@another change for TM -- use single machine if it exists, else \ds3100
@
text
@d21 1
a21 1
# $Header: /sprite/lib/mkmf/RCS/mkmf.top,v 1.8 89/04/06 21:40:34 jhh Exp Locker: douglis $ (SPRITE) Berkeley
d37 1
d67 1
@
1.9
log
@removed DEFTARGET -- we use $MACHINE now
@
text
@d14 1
d39 1
d41 1
d60 1
@
1.8
log
@added abilty to make specific machine types
@
text
@a13 1
# DEFTARGET name of default target
d20 1
a20 1
# $Header: /sprite/lib/mkmf/RCS/mkmf.top,v 1.7 88/11/27 16:28:42 ouster Exp Locker: jhh $ (SPRITE) Berkeley
a37 1
set defTarget = ($DEFTARGET)
a38 1
set defTarget=()
a56 1
-e "s,@@(DEFTARGET),$defTarget,g" \
@
1.7
log
@Various changes to replace old C library entirely with new C library.
@
text
@d14 1
d21 1
a21 1
# $Header: mkmf.top,v 1.6 88/08/12 14:38:30 ouster Exp $ (SPRITE) Berkeley
d39 1
a39 5
if (" $machines " =~ *\ sun3\ *) then
set defTarget=sun3
else
set defTarget=$machines[1]
endif
@
1.6
log
@No need to look for MAKEFILE or MACHINES. Also, be more restrictive
on which headers are exported.
@
text
@d20 1
a20 1
# $Header: mkmf.top,v 1.5 88/07/25 10:32:18 ouster Exp $ (SPRITE) Berkeley
d62 4
a66 2
-e "s,@@(MACHINES),$machines,g" \
-e "s,@@(DEFTARGET),$defTarget,g" \
a67 1
-e "s,@@(MAKEFILE),$makefile,g" \
a68 1
-e "s,@@(DATE),`date`,g" \
@
1.5
log
@Put more info in "top" makefiles: TM, MACHINES, NAME.
@
text
@d20 1
a20 1
# $Header: mkmf.top,v 1.4 88/06/21 16:05:21 ouster Exp $ (SPRITE) Berkeley
d23 10
d34 2
a36 5
if ($?MACHINES != 0) then
set machines=($MACHINES)
else
set machines=()
endif
a44 6
endif
if ($?MAKEFILE) then
set makefile=$MAKEFILE
else
set makefile=Makefile
@
1.4
log
@Added an extra substitution.
@
text
@d16 3
d20 1
a20 1
# $Header: mkmf.top,v 1.3 88/06/06 08:36:58 ouster Exp $ (SPRITE) Berkeley
d23 17
d61 3
@
1.3
log
@Print out actual name of makefile when it's different from "Makefile".
@
text
@d17 1
a17 1
# $Header: mkmf.top,v 1.2 88/06/05 13:58:39 ouster Exp $ (SPRITE) Berkeley
d42 1
@
1.2
log
@Turn off verbose.
@
text
@d17 1
a17 1
# $Header: mkmf.kernel,v 1.4 88/04/29 18:43:09 deboor Exp $ (SPRITE) Berkeley
d32 1
a32 1
echo "Generating a Makefile for $cwd using $proto"
@
1.1
log
@Initial revision
@
text
@a18 1
set verbose
@